package com.hznu.ez4life.modules.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author DragonDoor
 * @since 2019-07-25
 */
public class Helpapply implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private Integer huserId;
    private Integer nuserId;
    private Integer itemId;
    private Integer tobuildingId;
    private String toroom;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date applytime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date begintime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date endtime;
    private String des;
    private Double price;
    /**
     * 1-申请中,2-已接受,3-已拒绝,4-已取消
     */
    private Integer statu;

    @TableField(exist = false)
    private Item item;
    @TableField(exist = false)
    private Building tobuilding;
    @TableField(exist = false)
    private User nuser;

    public User getNuser() {
        return nuser;
    }

    public void setNuser(User nuser) {
        this.nuser = nuser;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public Building getTobuilding() {
        return tobuilding;
    }

    public void setTobuilding(Building tobuilding) {
        this.tobuilding = tobuilding;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHuserId() {
        return huserId;
    }

    public void setHuserId(Integer huserId) {
        this.huserId = huserId;
    }

    public Integer getNuserId() {
        return nuserId;
    }

    public void setNuserId(Integer nuserId) {
        this.nuserId = nuserId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getTobuildingId() {
        return tobuildingId;
    }

    public void setTobuildingId(Integer tobuildingId) {
        this.tobuildingId = tobuildingId;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getToroom() {
        return toroom;
    }

    public void setToroom(String toroom) {
        this.toroom = toroom;
    }

    public Date getApplytime() {
        return applytime;
    }

    public void setApplytime(Date applytime) {
        this.applytime = applytime;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Integer getStatu() {
        return statu;
    }

    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    @Override
    public String toString() {
        return "Helpapply{" +
        ", id=" + id +
        ", huserId=" + huserId +
        ", nuserId=" + nuserId +
        ", itemId=" + itemId +
        ", applytime=" + applytime +
        ", des=" + des +
        ", statu=" + statu +
        "}";
    }
}
